loadAd

fun loadAd(adRequest: AdRequest, listener: RewardedAdLoadListener)

Starts loading the ad on a background thread.

Parameters

adRequest

Data for targeting and ad configuration.

listener

RewardedAdLoadListener to be invoked when the ad is loaded or loading fails.


suspend fun loadAd(adRequest: AdRequest): RewardedAdLoadResult

Starts loading the ad on a background thread. Suspends until the result is available.

Return

RewardedAdLoadResult.Success with RewardedAd or RewardedAdLoadResult.Failure with com.yandex.mobile.ads.common.AdRequestError.

Parameters

adRequest

Data for targeting and ad configuration.